import { ResultEnum } from '../../enums/httpEnum'

const roleList = {
  current: 1,
  pages: 10,
  size: 10,
  total: 50,
  'records|50': [
    {
      createDate: '@date', //创建时间
      roleDescribe: '@csentence', // 角色描述
      roleId: '@id', // 角色ID
      roleName: '@cname', // 角色名称
      'userNumber|0-10': 5, // 用户数量
      updateDate: '@date' // 更新时间
    }
  ]
}

const roleAuthList = [
  {
    authorityId: '1',
    authorityName: '系统管理',
    authorityType: 0,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '0',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '2',
    authorityName: '机构管理',
    authorityType: 0,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '1',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '3',
    authorityName: '角色管理',
    authorityType: 0,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '1',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '4',
    authorityName: '用户管理',
    authorityType: 0,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '1',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '5',
    authorityName: '新增',
    authorityType: 1,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '4',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '6',
    authorityName: '查看',
    authorityType: 1,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '4',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '7',
    authorityName: '编辑',
    authorityType: 1,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '4',
    sort: 0,
    updateDate: ''
  },
  {
    authorityId: '8',
    authorityName: '删除',
    authorityType: 1,
    createDate: '',
    functionUrl: '',
    parentAuthorityId: '4',
    sort: 0,
    updateDate: ''
  }
]

const roleDetail = {
  authorityList: [
    {
      authorityId: '1',
      authorityName: '系统管理',
      authorityType: 0,
      createDate: '',
      functionUrl: '',
      parentAuthorityId: '0',
      sort: 0,
      updateDate: ''
    },
    {
      authorityId: '3',
      authorityName: '角色管理',
      authorityType: 0,
      createDate: '',
      functionUrl: '',
      parentAuthorityId: '1',
      sort: 0,
      updateDate: ''
    },
    {
      authorityId: '4',
      authorityName: '用户管理',
      authorityType: 0,
      createDate: '',
      functionUrl: '',
      parentAuthorityId: '1',
      sort: 0,
      updateDate: ''
    },
    {
      authorityId: '7',
      authorityName: '编辑',
      authorityType: 1,
      createDate: '',
      functionUrl: '',
      parentAuthorityId: '4',
      sort: 0,
      updateDate: ''
    }
  ],
  createDate: '@date', //创建时间
  roleDescribe: '@csentence', // 角色描述
  roleId: '@id', // 角色ID
  roleName: '@cname', // 角色名称
  updateDate: '@date' // 更新时间
}
export default {
  roleList,
  roleAuthList,
  roleDetail
}
